package com.alibaba.api.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    //用户id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //用户名
    private String username;

    //用户密码
    private String password;

    //用户手机号
    private String phone;

    //账户id
    @TableField("account_id")
    private Integer accountId;

    //注册时间
    @TableField("create_time")
    private Date createTime;

}
